//
//  BaseModel.m
//
//  Created by Ljw .
//  Copyright © 2016年 Ljw. All rights reserved.
//


#import "BaseModel.h"

@implementation NSObject (YYModelAdd)
+ (nullable NSArray *)modelArrayWithJson:(id)json {
    return [NSArray modelArrayWithClass:[self class] json:json];
}
+ (nullable NSDictionary *)modelDictionaryWithJson:(id)json {
    return [NSDictionary modelDictionaryWithClass:[self class] json:json];
}
@end

@implementation BaseModel
- (void)encodeWithCoder:(NSCoder *)aCoder { [self modelEncodeWithCoder:aCoder]; }
- (id)initWithCoder:(NSCoder *)aDecoder { self = [super init]; return [self modelInitWithCoder:aDecoder]; }
- (id)copyWithZone:(NSZone *)zone { return [self modelCopy]; }
- (NSUInteger)hash { return [self modelHash]; }
- (BOOL)isEqual:(id)object { return [self modelIsEqual:object]; }
- (NSString *)description { return [self modelDescription]; }
@end







